package org.jackysoft.service;

import org.jackysoft.entity.ArmMonthlySemiManufacturedProductReporter;
import org.springframework.dao.DataAccessException;

public interface ArmMonthlySemiManufacturedReporterService
extends	ReporterService<ArmMonthlySemiManufacturedProductReporter> {
	/**
	 * 
	 * 获取本部门某年最后一个月的表
	 * @param year 年份
	 * @return 报表
	 * @see org.jackysoft.service.AbstractReportServiceImpl#lastOfYear(int)
	 * */
	ArmMonthlySemiManufacturedProductReporter getLastOfYesteryear(int year) throws DataAccessException;
	
	/**
	 * 某编码产品的年结存
	 * */
	Double restProductOfYear(String code,int year) throws DataAccessException;
	/**
	 * 某编码产品的当前累计
	 * */
	Double currentRestProduct(String code) throws DataAccessException;

	byte[] getResearchBytes(String id, boolean regenate);

	void updateResearch(String id);
}
